package com.example.handsets8app.Utils;

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class DialogDesign extends Dialog {
    public DialogDesign(Context context) {
        super(context);
    }

    public DialogDesign(Context context, int width, int height, View layout, int style) {
        super(context, style);
        setContentView(layout);

        Window window = getWindow();

        WindowManager.LayoutParams params = window.getAttributes();

        params.gravity = Gravity.CENTER;

        window.setAttributes(params);
    }

    protected DialogDesign(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }
}
